package com.ruoyi.hatha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hatha.mapper.PYkechengMapper;
import com.ruoyi.hatha.domain.PYkecheng;
import com.ruoyi.hatha.service.IPYkechengService;

/**
 * 课程列Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-15
 */
@Service
public class PYkechengServiceImpl implements IPYkechengService 
{
    @Autowired
    private PYkechengMapper pYkechengMapper;

    /**
     * 查询课程列
     * 
     * @param id 课程列主键
     * @return 课程列
     */
    @Override
    public PYkecheng selectPYkechengById(Long id)
    {
        return pYkechengMapper.selectPYkechengById(id);
    }

    /**
     * 查询课程列列表
     * 
     * @param pYkecheng 课程列
     * @return 课程列
     */
    @Override
    public List<PYkecheng> selectPYkechengList(PYkecheng pYkecheng)
    {
        return pYkechengMapper.selectPYkechengList(pYkecheng);
    }

    /**
     * 新增课程列
     * 
     * @param pYkecheng 课程列
     * @return 结果
     */
    @Override
    public int insertPYkecheng(PYkecheng pYkecheng)
    {
        return pYkechengMapper.insertPYkecheng(pYkecheng);
    }

    /**
     * 修改课程列
     * 
     * @param pYkecheng 课程列
     * @return 结果
     */
    @Override
    public int updatePYkecheng(PYkecheng pYkecheng)
    {
        return pYkechengMapper.updatePYkecheng(pYkecheng);
    }

    /**
     * 批量删除课程列
     * 
     * @param ids 需要删除的课程列主键
     * @return 结果
     */
    @Override
    public int deletePYkechengByIds(Long[] ids)
    {
        return pYkechengMapper.deletePYkechengByIds(ids);
    }

    /**
     * 删除课程列信息
     * 
     * @param id 课程列主键
     * @return 结果
     */
    @Override
    public int deletePYkechengById(Long id)
    {
        return pYkechengMapper.deletePYkechengById(id);
    }

    @Override
    public List<PYkecheng> getList(PYkecheng pYkecheng) {
        return pYkechengMapper.getList(pYkecheng);
    }

    @Override
    public List<PYkecheng> selectPYkechengListInfo(PYkecheng pYkecheng) {
        return pYkechengMapper.selectPYkechengListInfo(pYkecheng);
    }
}
